import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

// 子component
import { OperateUserListComponent } from './operate-user-list/operate-user-list.component';
import { OperateModifyComponent } from './operate-modify/operate-modify.component';
const routes: Routes = [
  {
    path: '',
    data: {
    },
    children: [
      {
        path: 'index',
        component: OperateUserListComponent,
        data: {
          title: '运营人员管理'
        }
      },
      {
        path: 'index/add',
        component: OperateModifyComponent,
        data: {
          title: '添加用户'
        }
      },
      {
        path: 'index/modify/:id',
        component: OperateModifyComponent,
        data: {
          title: '修改用户'
        }
      },
    ]
  }
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class OperateUserRoutingModule {}
